<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/5/31
 * Time: 13:24
 */

namespace app\admin\model;


class ChinaProvince extends Base {

    /**
     * 获取所有省份
     * @return array|\PDOStatement|string|\think\Collection
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     */
    public static function province(){
        return self::field('name,id')->where(['status'=>0])->select();
    }

}